package com.chance.cc.crawler.prod.command.trigger.domain.news.toutiao;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.job.domain.news.baidu.BaiDuCommonScript;
import com.chance.cc.crawler.prod.command.job.domain.news.toutiao.adhoc.TouTiaoArticleSimpleCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger;

/**
 * @author lt
 * @version 1.0
 * @date 2021-05-08 17:26:25
 * @email okprog@sina.com
 */
public class TouTiaoArticleSimpleCrawlerSchedulerTrigger extends CommonCrawlerSchedulerTrigger {

    public static void main(String[] args) {
        publishTouTiaoSimpleScheduleTriggerInfo(TouTiaoArticleSimpleCrawlerSchedulerJob.crawlerScheduler());
   }

    public static void publishTouTiaoSimpleScheduleTriggerInfo(CrawlerJob crawlerJob){
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                BaiDuCommonScript.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Simple,
                "",
                "今日头条临时采集任务");
    }
}
